// pages/org/join/join.js
const API = require('../../../utils/api')
Page({

  /**
   * 页面的初始数据
   */
  data: {
    orgId:'',
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
    const id = options.id;
    this.setData({
      orgId: id
    });
  },
  orgJoin(){
    API.orgJoin(this.data.orgId)
  }
})